package com.logistics.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import cn.easybuild.core.hibernate.StringPojoHibernateHandler;

import com.logistics.Shop;
import com.logistics.ShopQueryParam;

@Repository
public class ShopDaoImpl extends StringPojoHibernateHandler<Shop> implements ShopDao {

	@Override
	public List<Shop> query(ShopQueryParam param) {
		return queryWithParameter(param, "s", "s.name", new QueryCriteriaSetter() {

			@Override
			public void setCriteria(StringBuffer hql, Map<String, Object> value) {
				
			}
		});
	}

	@Override
	protected Class<Shop> getEntityClass() {
		return Shop.class;
	}

}
